Read Me
Replication Information for 
Polarization vs. Professionalism: Military and Civilian Views on the Domestic Use of the Military

This Replication file contains the following items:

main_analysis.R is the main replication code for all results. The replicator can set the working directory and add a folder labeled �Figures� to the directory folder, and all the figures in the text and appendix will appear in the figures folder.

The replication script uses two data sources:
1) civ_survey.csv contains the data from the Qualtrics survey of the US public (1451 surveys started, 827 completed)
2) mil_survey.csv contains the data from our survey of Naval War College students (156 surveys started, 137 completed)

Codebook.docx explains all variables in these two datasets.

The main analysis was conducted using:
R version 4.3.1
RStudio version 2024.04.1
32-GB RAM computer

tidyverse version 2.0.0
tidytext version 0.4.1
lubridate version 1.9.3
stringr version 1.5.0
kableExtra version 1.3.4
scales version 1.2.1
janitor version 2.2.0
ggplot2 version 3.4.3
ggstance version 0.3.6
descr version 1.1.8

